<!DOCTYPE html>
<html lang="en">
<head>
    <title>楼盘销控展示</title>
    <meta charset="utf-8">
    <link href="/plugins/echarts/common.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/style/admin.css" media="all">
    <link rel="stylesheet" href="/style/jmdf.css" media="all">
    <#setting number_format="#.##">
</head>
<body>
<!--顶部-->
<header class="header left">
    <div class="header_center_all left" style="position:relative;font-weight: bold;font-size: 40px;">
        <table>
            <#if projects??>
                <tr>
                    <#list projects as project>
                        <td class="layui-btn layui-btn-lg">${(project.projectName)!}:</td>
                        <#if houseByProjectIdMap??>
                            <#if houseByProjectIdMap[project.id?c]??>
                                <#assign buildNumList = houseByProjectIdMap[project.id?c]/>
                                <#assign projectName = (project.projectName)!/>
                                <#list buildNumList as buildNum>
                                    <td class="layui-btn layui-btn-lg" onclick="loadHousePicLoad('${projectName}',${(project.id)!},26,${(buildNum)!})">${(buildNum)!}幢</td>
                                </#list>
                            </#if>
                        </#if>
                        <td style="width: 80px"></td>
                    </#list>
                </tr>
            </#if>
            <tr>
                <td>
                    <span style="position: absolute;left: 0px;">
                         <span class="layui-badge"
                               style="background-color: ${colorMap['1']};font-size: 20px;padding-top: 5px;padding-bottom: 5px;width: 120px;">&nbsp;可选&nbsp;</span>
                         <span class="layui-badge"
                               style="background-color: ${colorMap['2']};font-size: 20px;padding-top: 5px;padding-bottom: 5px;width: 100px;">&nbsp;已选&nbsp;</span>
                    </span>
                </td>
            </tr>
        </table>
    </div>
</header>
<div class="con left">
    <div class="div_any">
        <div class="left div_any01" style="width:99%">
            <div class="div_any_child" style="width:99%;height: 1790px;">
                <div class="div_any_title" style="font-size: 25px;">[<span class="jmdf-color-red" id="buildNumHtml"></span>]</div>
                <div id="housePic1" style="margin-top: 10px;"></div>
            </div>
        </div>
    </div>
</div>
<script src="/layui/layui.js" charset="utf-8"></script>
<script src="/plugins/jquery/jquery.min.js"></script>
</body>
<script>
    function loadHousePic1() {
        $("#housePic1").html("加载中，请稍后...");
        $("#buildNumHtml").html("百德康园" + "[" + "11" + "]" + "幢");
        $.get("houseBuildShow", {
            zsProjectIdStr: "8",
            azProjectId: 1,
            maxFloor: 26,
            minFloor: 1,
            buildNum: '11',
            _time: new Date().getTime()
        }, function (data) {
            $("#housePic1").html(data);
        });
    }

    function loadHousePicLoad(azProjectName,azProjectId,maxFloor,buildNum) {
        $("#buildNumHtml").html(azProjectName + "[" + buildNum + "]" + "幢");
        if (azProjectName == '建发泱著' && buildNum == 15) {
            $.get("houseBuildShow7", {
                zsProjectIdStr: "8",
                azProjectId: azProjectId,
                maxFloor: maxFloor,
                minFloor: 1,
                buildNum: buildNum,
                _time: new Date().getTime()
            }, function (data) {
                $("#housePic1").html(data);
            });
        } else {
            $.get("houseBuildShow", {
                zsProjectIdStr: "8",
                azProjectId: azProjectId,
                maxFloor: maxFloor,
                minFloor: 1,
                buildNum: buildNum,
                _time: new Date().getTime()
            }, function (data) {
                $("#housePic1").html(data);
            });
        }

    }

    $(function () {
        loadHousePicLoad("百德康园",1,26,12);//初始加载
    })

</script>
</html>
